function LoginView(controller, div) {

	this.render = function() {
		var loginHtml = '<div id="loginForm" class="content-panel">'
			+ '<table class="table-layout">'
			+ '<tr>'
			+ '<td>Логин:</td><td><input type="text" id="login"/></td>'
			+ '</tr><tr>'
			+ '<td>Пароль:</td><td><input type="password" id="password"/></td>'
			+ '</tr>'
			+ '<tr>'
			+ '<td colspan="2" align="right"><div id="rememberMe">Запомнить</div></td>'
			+ '</tr>'
			+ '<tr>'
			+ '<td colspan="2" align="center"><div id="signinBtn">Войти</div></td>'
			+ '</tr>'
			+ '</table>'
			+ '</div>';
		$(div).html(loginHtml);
		$("#loginForm").jqxPanel({ width: 290, height: 140 });
		var login = $.jqx.cookie.cookie("login");
		$("#login").jqxInput({ placeHolder: "введите логин", value: login, height: 25, width: 200, minLength: 1 });
		$("#password").jqxInput({ placeHolder: "введите пароль", height: 25, width: 200, minLength: 1 });
		$("#rememberMe").jqxCheckBox({ checked: true });
		$("#signinBtn").jqxButton({ width: 100 }).on('click', function() {
			var username = $("#login").val();
			var pass = $("#password").val();
			if (username != null && $.trim(username).length && pass != null && $.trim(pass).length) {
				controller.signin(username, pass);
			}
		});
	};
};